<?php
/*
Description: This file is used to save venue inventory.
*/
#########IncludeFiles####################################################################################
include_once '../inc/config.php';
include_once("../inc/bootstrape.php");
require_once _SITE_PATH_.'classes/Venue/Venue.php';
require_once _SITE_PATH_.'classes/CommonUtility/CommonUtility.php';


if( $_POST['submit']=='Submit'){    
    $parms['venue_id'] = $_POST['venue'];
    $parms['start_date'] = $_POST['start_date'];
    $parms['end_date'] = $_POST['end_date'];
    $parms['added'] = date("Y-m-d H:i:s");
    
       
    if(CommonUtility::insertData($parms, 'venue_inventory')) {        
        header("Location: venueinventory_mng.php?msg=1764");            
        exit;
    }
    $err = 1765;    
}

$errMsg = $err;
$_tplName = 'venue/venueinventory_add.tpl';
$_title = 'Add Venue Inventory';

//  calender js include
$_extraJS[] = _SITE_URL_ . 'lib/calender/js/cal.js';
require_once _ADMIN_TPL_MAIN_;
?>